import React from 'react';
import BeginExamComponent from './beginExamComponent.js';

export default class Example extends React.Component{

    constructor(){
        super();
        this.state={
           showDialog:false
        }
    }

    showDialog(){
        this.setState({
            showDialog:true
        })
    }

    closeDialog(){
        this.setState({
            showDialog:false
        })
    }
    render(){
        return(
            <div>
                <BeginExamComponent onButtonClick={this.showDialog.bind(this)} onButtonClose={this.closeDialog.bind(this)} isShow={this.state.showDialog}/>
            </div>
        )
    }
}
